$(function() {
	var h=$("#bottomFrame").css("height");
	var indexNum=h.indexOf("p");
	var heighNum=h.substring(0,indexNum);
	var intHeigh=parseInt(heighNum);
	var pageSizeFloat=(intHeigh*0.7)/35;
	var	pageSize=parseInt(pageSizeFloat);
	$('.navigation li').hover(
	  function() {
		  $('ul', this).fadeIn(); 
	   },
	   function() {
		  $('ul', this).fadeOut();
	   }
	);
	$('.navigation li>ul>li').click(function(){
		$(this).parent().parent().addClass("bg");
		$(this).parent().parent().siblings().removeClass("bg");
	})
	$("#yjzy").attr("href","YjzyAction_selectAllZy.action?pageSize="+pageSize);
	$("#sjgl").attr("href","SjAction_toSjglPage.action?pageSize="+pageSize);
	$("#xjsj").attr("href","SjAction_toXjSjPage.action?pageSize="+pageSize);
	$("#yagl").attr("href","YaglAction_selectAllYa.action?pageSize="+pageSize);
	$("#yjdw").attr("href","YaAction_selectAllTeam.action?pageSize="+pageSize);
	$("#ckfa").attr("href","ckfaAction_toCkfaPage.action?pageSize="+pageSize);
	$("#hsgl").attr("href","hsglAction_toHsglPage.action?pageSize="+pageSize);
	$("#hsclgl").attr("href","hsclglAction_toHsclglPage.action?pageSize="+pageSize);
});
function getOs() {
	var OsObject = "";
	if (navigator.userAgent.indexOf("MSIE") > 0) {
		return "MSIE";
	}
	if (isFirefox = navigator.userAgent.indexOf("Firefox") > 0) {
		return "Firefox";
	}
	if (isSafari = navigator.userAgent.indexOf("Safari") > 0) {
		return "Safari";
	}
	if (isCamino = navigator.userAgent.indexOf("Camino") > 0) {
		return "Camino";
	}
	if (isMozilla = navigator.userAgent.indexOf("Gecko/") > 0) {
		return "Gecko";
	}
}
